<? if ($c = stack('name')) {

	$d = component_data($c); 
	$s = component_settings($c);

	?><div id="bc-<?=$c?>" class="block">
		<a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>
	</div>
	
	<? startScript('swfobject'); ?><script type="text/javascript">
		vars = {speed: "<?=$s['speed']?>", step: "<?=$s['step']?>", delay:"<?=$s['delay']?>", p: "<?=FP_UPLOAD_PATH.$s['path'].'/'?>", transition:"<?=$s['transition']?>", bubbles: "<?=sizeof($d)?>"};
		<? $i=0; foreach($d as $im => $info) {	?>vars["bubble<?=++$i?>"] = "<?=$im?>"; <? } ?>
		swfobject.embedSWF("/lib/rotator.swf", "bc-<?=$c?>", "<?=$s['w']?>", "<?=$s['h']?>", "8.0.0", "/lib/expressInstall.swf", vars, {wmode: "transparent"}, {id: "bc-<?=$c?>-obj"} );
	</script><? endScript();

	$GLOBALS['SP']--;
} ?>